package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.FreightTemplateChargingRegion;
import com.ecoolex.chinadutyfree.retailer.entity.FreightTemplateChargingRegionExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface FreightTemplateChargingRegionMapper {
    long countByExample(FreightTemplateChargingRegionExample example);

    int deleteByExample(FreightTemplateChargingRegionExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(FreightTemplateChargingRegion record);

    int insertSelective(@Param("record") FreightTemplateChargingRegion record, @Param("selective") FreightTemplateChargingRegion.Column ... selective);

    FreightTemplateChargingRegion selectOneByExample(FreightTemplateChargingRegionExample example);

    List<FreightTemplateChargingRegion> selectByExample(FreightTemplateChargingRegionExample example);

    FreightTemplateChargingRegion selectByPrimaryKey(Integer id);

    FreightTemplateChargingRegion selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") FreightTemplateChargingRegion record, @Param("example") FreightTemplateChargingRegionExample example, @Param("selective") FreightTemplateChargingRegion.Column ... selective);

    int updateByExample(@Param("record") FreightTemplateChargingRegion record, @Param("example") FreightTemplateChargingRegionExample example);

    int updateByPrimaryKeySelective(@Param("record") FreightTemplateChargingRegion record, @Param("selective") FreightTemplateChargingRegion.Column ... selective);

    int updateByPrimaryKey(FreightTemplateChargingRegion record);

    int batchInsert(@Param("list") List<FreightTemplateChargingRegion> list);

    int batchInsertSelective(@Param("list") List<FreightTemplateChargingRegion> list, @Param("selective") FreightTemplateChargingRegion.Column ... selective);

    int logicalDeleteByExample(@Param("example") FreightTemplateChargingRegionExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}